package com.bw.product.service.impl;

import com.bw.product.domain.PmsSkuImages;
import com.bw.product.mapper.PmsSkuImagesMapper;
import com.bw.product.service.PmsSkuImagesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PmsSkuImagesServiceImpl implements PmsSkuImagesService {
    @Autowired
    private PmsSkuImagesMapper pmsSkuImagesMapper;

    /**
     * 根据id获取sku图片详细信息
     * @param id
     * @return
     */
    @Override
    public PmsSkuImages selectPmsSkuImagesById(Long id) {
        return pmsSkuImagesMapper.selectPmsSkuImagesById(id);
    }

    /**
     * 根据skuId获取sku图片详细信息
     * @param skuId
     * @return
     */
    @Override
    public List<PmsSkuImages> selectPmsSkuImagesBySkuId(Long skuId) {
        return pmsSkuImagesMapper.selectPmsSkuImagesBySkuId(skuId);
    }
}
